package com.dingtalk.h5app.quickstart.service;

import cn.afterturn.easypoi.word.entity.bookmark.*;

import java.util.*;

public class BuildJSON {
    public ListWordEntityVO getJson(){
        ListWordEntityVO listWordEntityVO=new ListWordEntityVO();
        String jsonfileid="ce648074-fb40-4396-8096-77cdc07f0c04";
        String fileid="0f67d720-6e54-4f6a-8a13-dd04541dd009";
        String filemd5="38f42f02dcf13aafd2b0f628ad2569d5";
        String combinedid="ce648074-fb40-4396-8096-77cdc07f0c0x";
        listWordEntityVO.setCombineid(combinedid);
        listWordEntityVO.setFilemoduleid(fileid);
        listWordEntityVO.setJsonfileid(jsonfileid);

        List<WordEntityVO> wordEntityVOS=new ArrayList<>();
        listWordEntityVO.setWordEntityVOS(wordEntityVOS);
        WordEntityVO wordEntityVO=new WordEntityVO();
        wordEntityVOS.add(wordEntityVO);
        wordEntityVO.setComibineid(combinedid);
        wordEntityVO.setJsonfileid(jsonfileid);
        wordEntityVO.setFileid(fileid);
        wordEntityVO.setMd5("38f42f02dcf13aafd2b0f628ad2569d5");

        wordEntityVO.setId(UUID.randomUUID().toString());
        Set<HeaderEntityVO> headerEntityVOS=new HashSet<>();
        HeaderEntityVO headerEntityVO=new HeaderEntityVO();
        headerEntityVO.setId(UUID.randomUUID().toString());
        headerEntityVOS.add(headerEntityVO);
        headerEntityVO.setWordEntityVO(wordEntityVO);
        BookMarkEntityVO bookMarkEntityVO=new BookMarkEntityVO();
        bookMarkEntityVO.setId(UUID.randomUUID().toString());
        bookMarkEntityVO.setBookmarkname("建设单位");
        bookMarkEntityVO.setBookmarkvalue("中国电信");
        Set<ParagraphEntityVO> paragraphEntityVOS=new HashSet<>();
        headerEntityVO.setParagraphEntityVOS(paragraphEntityVOS);

        Set<BookMarkEntityVO> bookMarkEntityVOS=new HashSet<>();
        ParagraphEntityVO paragraphEntityVO=new ParagraphEntityVO();
        paragraphEntityVO.setId(UUID.randomUUID().toString());
        paragraphEntityVO.setBookMarkEntityVOS(bookMarkEntityVOS);
        paragraphEntityVO.getBookMarkEntityVOS().add(bookMarkEntityVO);
        paragraphEntityVOS.add(paragraphEntityVO);
        /*List<ParagraphEntityVO> paragraphEntityVOS=new ArrayList<>();
        List<TableEntityVO>tableEntityVOS=new ArrayList<>();
        List<FootEntityVO> footEntityVOS=new ArrayList<>();*/
        wordEntityVO.setHeaderEntityVOS(headerEntityVOS);
//next
        WordEntityVO wordEntityVO1=new WordEntityVO();
        wordEntityVOS.add(wordEntityVO1);
        wordEntityVO1.setComibineid(combinedid);
        wordEntityVO1.setJsonfileid(jsonfileid);
        wordEntityVO1.setFileid(fileid);
        wordEntityVO1.setMd5("38f42f02dcf13aafd2b0f628ad2569d5");

        wordEntityVO1.setId(UUID.randomUUID().toString());
        Set<HeaderEntityVO> headerEntityVOS1=new HashSet<>();
        HeaderEntityVO headerEntityVO1=new HeaderEntityVO();
        headerEntityVO1.setId(UUID.randomUUID().toString());
        headerEntityVOS1.add(headerEntityVO1);

        BookMarkEntityVO bookMarkEntityVO2=new BookMarkEntityVO();
        bookMarkEntityVO2.setId(UUID.randomUUID().toString());
        bookMarkEntityVO2.setBookmarkname("建设单位");
        bookMarkEntityVO2.setBookmarkvalue("中国电信11");
        Set<BookMarkEntityVO> bookMarkEntityVOS2=new HashSet<>();
        headerEntityVO1.setBookMarkEntityVOS(bookMarkEntityVOS2);
        headerEntityVO1.getBookMarkEntityVOS().add(bookMarkEntityVO2);


        wordEntityVO1.setHeaderEntityVOS(headerEntityVOS1);

        return  listWordEntityVO;



    }
}
